Only write a success node when coming online, not going offline.
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Fri, 25 Nov 2005 17:09:49 +0000 (17:09 +0000)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Fri, 25 Nov 2005 17:09:49 +0000 (17:09 +0000)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/examples/vif-nat
tools/examples/vif-route

index a9cf3db424d698b9599b1a96efe6ac8bdd2eafa4..653038f2238cab8a5a7566e97449d48eaf006ce7 100644 (file)
@@ -55,4 +55,8 @@ ip r ${ipcmd} ${ip} dev ${vif} src ${main_ip}
 
 handle_iptable
 
-success
+log debug "Successful vif-nat $command for $vif."
+if [ "$command" == "online" ]
+then
+  success
+fi
index cb46a782383401760dc830cba1d3b53d0770bb38..84a6f2d0c634c99753a6c83072b7fbb5d74ad8f3 100755 (executable)
@@ -47,4 +47,8 @@ fi
 
 handle_iptable
 
-success
+log debug "Successful vif-route $command for $vif."
+if [ "$command" == "online" ]
+then
+  success
+fi